import request from '@/utils/request'

// 设备配置计划
export function getDeviceConfigPlanBasicInfoList(data) {
  return request({
    url: '/api/machineDeviceManage/deviceConfigPlanInfo/getDeviceConfigPlanBasicInfoList',
    method: 'post',
    data
  })
}

export function getDeviceConfigPlanDetailList(params) {
  return request({
    url: '/api/machineDeviceManage/deviceConfigPlanInfo/getDeviceConfigPlanDetailList',
    method: 'post',
    params
  })
}

export function getDeviceConfigPlanFinishInfoList(data) {
  return request({
    url: '/api/machineDeviceManage/deviceConfigPlanInfo/getDeviceConfigPlanFinishInfoList',
    method: 'post',
    data
  })
}

export function addDeviceConfigPlanInfo(data) {
  return request({
    url: '/api/machineDeviceManage/deviceConfigPlanInfo/addDeviceConfigPlanInfo',
    method: 'post',
    data
  })
}

export function updateDeviceConfigPlanInfo(data) {
  return request({
    url: '/api/machineDeviceManage/deviceConfigPlanInfo/updateDeviceConfigPlanInfo',
    method: 'post',
    data
  })
}

export function deleteDeviceConfigPlanInfo(params) {
  return request({
    url: '/api/machineDeviceManage/deviceConfigPlanInfo/deleteDeviceConfigPlanInfo',
    method: 'post',
    params
  })
}

export function getDeviceConfigPlanInfoDetail(params) {
  return request({
    url: '/api/machineDeviceManage/deviceConfigPlanInfo/getDeviceConfigPlanInfoDetail',
    method: 'post',
    params
  })
}

// 设备调入
export function getDeviceInputBasicInfoList(data) {
  return request({
    url: '/api/machineDeviceManage/deviceInputInfo/getDeviceInputBasicInfoList',
    method: 'post',
    data
  })
}
export function addDeviceInputInfo(data) {
  return request({
    url: '/api/machineDeviceManage/deviceInputInfo/addDeviceInputInfo',
    method: 'post',
    data
  })
}
export function updateDeviceInputInfo(data) {
  return request({
    url: '/api/machineDeviceManage/deviceInputInfo/updateDeviceInputInfo',
    method: 'post',
    data
  })
}
export function deleteDeviceInputInfo(params) {
  return request({
    url: '/api/machineDeviceManage/deviceInputInfo/deleteDeviceInputInfo',
    method: 'post',
    params
  })
}
export function getDeviceInputInfoDetail(params) {
  return request({
    url: '/api/machineDeviceManage/deviceInputInfo/getDeviceInputInfoDetail',
    method: 'post',
    params
  })
}

// 设备调出
export function getDeviceOutputBasicInfoList(data) {
  return request({
    url: '/api/machineDeviceManage/deviceOutputInfo/getDeviceOutputBasicInfoList',
    method: 'post',
    data
  })
}
export function getDeviceOutputFinishInfoList(data) {
  return request({
    url: '/api/machineDeviceManage/deviceOutputInfo/getDeviceOutputFinishInfoList',
    method: 'post',
    data
  })
}
export function getDeviceUseLedgerList(data) {
  return request({
    url: '/api/machineDeviceManage/deviceUseLedger/getDeviceUseLedgerList',
    method: 'post',
    data
  })
}
export function exportDeviceUseLedger(params) {
  return request({
    url: '/api/machineDeviceManage/deviceUseLedger/exportDeviceUseLedger',
    method: 'get',
    responseType: 'blob',
    params
  })
}
export function addDeviceOutputInfo(data) {
  return request({
    url: '/api/machineDeviceManage/deviceOutputInfo/addDeviceOutputInfo',
    method: 'post',
    data
  })
}
export function updateDeviceOutputInfo(data) {
  return request({
    url: '/api/machineDeviceManage/deviceOutputInfo/updateDeviceOutputInfo',
    method: 'post',
    data
  })
}
export function deleteDeviceOutputInfo(params) {
  return request({
    url: '/api/machineDeviceManage/deviceOutputInfo/deleteDeviceOutputInfo',
    method: 'post',
    params
  })
}
export function getDeviceOutputInfoDetail(params) {
  return request({
    url: '/api/machineDeviceManage/deviceOutputInfo/getDeviceOutputInfoDetail',
    method: 'post',
    params
  })
}

export function getDeviceAllocationFinishInfoList(data) {
  return request({
    url: '/api/deviceAllocationInfo/getDeviceAllocationFinishInfoList',
    method: 'post',
    data
  })
}

export function addDeviceAllocationInfo(data) {
  return request({
    url: '/api/deviceAllocationInfo/addDeviceAllocationInfo',
    method: 'post',
    data
  })
}

export function updateDeviceAllocationInfo(data) {
  return request({
    url: '/api/deviceAllocationInfo/updateDeviceAllocationInfo',
    method: 'post',
    data
  })
}

export function deleteDeviceAllocationInfo(params) {
  return request({
    url: '/api/deviceAllocationInfo/deleteDeviceAllocationInfo',
    method: 'post',
    params
  })
}

export function getDeviceAllocationInfoDetail(params) {
  return request({
    url: '/api/deviceAllocationInfo/getDeviceAllocationInfoDetail',
    method: 'post',
    params
  })
}

// 易耗品台账
export function getConsumableLedgerList(data) {
  return request({
    url: '/api/consumableLedger/getConsumableLedgerList',
    method: 'post',
    data
  })
}

export function addConsumableLedger(data) {
  return request({
    url: '/api/consumableLedger/addConsumableLedger',
    method: 'post',
    data
  })
}

export function updateConsumableLedger(data) {
  return request({
    url: '/api/consumableLedger/updateConsumableLedger',
    method: 'post',
    data
  })
}

export function deleteConsumableLedger(params) {
  return request({
    url: '/api/consumableLedger/deleteConsumableLedger',
    method: 'post',
    params
  })
}

export function getConsumableLedgerDetail(params) {
  return request({
    url: '/api/consumableLedger/getConsumableLedgerDetail',
    method: 'post',
    params
  })
}

// 设备报废计划
export function getDeviceScrapPlanInfoList(data) {
  return request({
    url: '/api/machineDeviceManage/deviceScrapPlanInfo/getDeviceScrapPlanInfoList',
    method: 'post',
    data
  })
}

export function addDeviceScrapPlanInfo(data) {
  return request({
    url: '/api/machineDeviceManage/deviceScrapPlanInfo/addDeviceScrapPlanInfo',
    method: 'post',
    data
  })
}

export function updateDeviceScrapPlanInfo(data) {
  return request({
    url: '/api/machineDeviceManage/deviceScrapPlanInfo/updateDeviceScrapPlanInfo',
    method: 'post',
    data
  })
}

export function deleteDeviceScrapPlanInfo(params) {
  return request({
    url: '/api/machineDeviceManage/deviceScrapPlanInfo/deleteDeviceScrapPlanInfo',
    method: 'post',
    params
  })
}

export function getDeviceScrapPlanInfoDetail(params) {
  return request({
    url: '/api/machineDeviceManage/deviceScrapPlanInfo/getDeviceScrapPlanInfoDetail',
    method: 'post',
    params
  })
}

// 设备报废处理
export function getDeviceScrapHandleInfoList(data) {
  return request({
    url: '/api/machineDeviceManage/deviceScrapHandleInfo/getDeviceScrapHandleInfoList',
    method: 'post',
    data
  })
}

export function addDeviceScrapHandleInfo(data) {
  return request({
    url: '/api/machineDeviceManage/deviceScrapHandleInfo/addDeviceScrapHandleInfo',
    method: 'post',
    data
  })
}

export function updateDeviceScrapHandleInfo(data) {
  return request({
    url: '/api/machineDeviceManage/deviceScrapHandleInfo/updateDeviceScrapHandleInfo',
    method: 'post',
    data
  })
}

export function deleteDeviceScrapHandleInfo(params) {
  return request({
    url: '/api/machineDeviceManage/deviceScrapHandleInfo/deleteDeviceScrapHandleInfo',
    method: 'post',
    params
  })
}

export function getDeviceScrapHandleInfoDetail(params) {
  return request({
    url: '/api/machineDeviceManage/deviceScrapHandleInfo/getDeviceScrapHandleInfoDetail',
    method: 'post',
    params
  })
}
